Skip to content

Conversation

sebsto
Copy link
Contributor

@sebsto sebsto commented Jul 1, 2025

All the examples are now under one Swift project (one Package.swift file)

Motivation:

Building all the examples on my laptop took > 1h because each example downloaded and compiled the Lambda Runtime and its dependency (NIO)

Modifications:

I remove each individual example's Package.swift and consolidated all the targets into a single file.

I adjusted the README for each example (instruct user to use swift build --target xxx insead of swift build, and the same for the swift run and swift package archive commands

I adjusted the CI script

Result:

Examples build in 4 minutes on my laptop instead of ~60 min

@sebsto sebsto self-assigned this Jul 1, 2025
@sebsto sebsto added kind/enhancement Improvements to existing feature. semver/none No version bump required. area/testing Improvements to tests. labels Jul 1, 2025
@sebsto
Copy link
Contributor Author

sebsto commented Jul 2, 2025

Closing this as this increases the build time during CI from ~8 min to ~20 min

@sebsto sebsto closed this Jul 2, 2025
@sebsto sebsto deleted the sebsto/examples branch July 4, 2025 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/testing Improvements to tests. kind/enhancement Improvements to existing feature. semver/none No version bump required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant